import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.LinkedList;


public class test {
	public static void main(String[] args) throws IOException{
		
		URL url;
		try {
			url = new URL("https://0000av.co/");

			url.openConnection();
		HttpURLConnection connection = (HttpURLConnection) url.openConnection();
		connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)");
		
		BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
		String urlString = "";
		String current;
		while ((current = in.readLine()) != null) {
			urlString += current;
		}
		System.out.println(urlString);
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		/*
		 * LinkedList<String> head = new LinkedList<String>();
		head.add("hello!");
		head.add("man!");
		head.add("fuck");
		head.add("you!");
		System.out.println(head.getFirst());
		System.out.println(head.getFirst());
		
		for(String url : head){
			if(url=="fuck"){
				System.out.println("不许说脏话！");
				break;
			}
			else
				System.out.println(url);
		}
		
		while(!head.isEmpty()){
			System.out.println("目前第一个元素是"+head.getFirst());
			head.remove(0);
			try {
				Thread.currentThread().sleep(5000);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			System.out.println("目前第一个元素是"+head.getFirst());
			head.remove(0);
			try {
				Thread.currentThread().sleep(5000);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		*/
		
		String a = "abcdef";
		System.out.println(a.length());
		a = a.substring(a.indexOf("c")+"c".length(),a.length());
		System.out.println(a);
		
	}
}
